﻿@model IEnumerable<TenderSampleApp.Models.TenderResultModel>
@using TenderSampleApp.Code  
@{
    ViewBag.Title = "GetCurrentResult";
}

<h2>GetCurrentResult</h2>
 @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table cellpadding="2" cellspacing="0" border="1" class="tbl">
    <tr>
        <th> 
            @Html.Resource("BuyerName")
        </th>
        <th>
            @Html.Resource("StockQuantity")
        </th>
        <th>
            @Html.Resource("RatedCost")
        </th>
        <th>
            @Html.Resource("FactCost")
        </th>
        <th>
          @Html.Resource("FirmName")
        </th>
        <th></th>
    </tr>

@foreach (var item in Model)
{
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.BuyerName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.StockQuantity)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.RatedCost)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.FactCost)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.FirmName)
        </td>
        <td>
            @Html.ActionLink("Edit", "EditCurrentResult", item) |
            @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
        </td>
    </tr>
}

</table>
